// @description 创建课程
// @author 冯世玉
// @date 2018-4-19

import axios from "../index.js"

var creatCourse= {
	// 创建课程
	addCourse:function(data,success,failure){
		return axios.postJson("/course/addCourse",data,success,failure);
	},
	// 批量导入
	courseExc:function(data,success,failure){
		return axios.post("/admin/courseMemberExcel",data,success,failure);
	},
	// 批量下载 
	courseDownload:function(data,success,failure){
		return axios.post("/admin/downloadExcel",data,success,failure);
	},
	
	// 获取职位
	getPosition:function(data,success,failure){
		return axios.post("/admin/getPosition",data,success,failure);
	},
	// 学员列表
	studentManage:function(data,success,failure){
		return axios.post("/admin/studentManage",data,success,failure);
	},
	
	// 返回所有可用学员列表
	getAvailableStudent:function(data,success,failure){
		return axios.post("/admin/getAvailableStudent",data,success,failure);
	},
	
}

export default creatCourse